#pragma once

#include <cv.h>
#include <cvcam.h>
#include <cxcore.h>
#include <highgui.h>

// CRobot

class CRobot 
{
public:
	CRobot();
	~CRobot();


	BYTE robotdata[64];
	int usb_flag;
	int	m_Brightness;
	IplImage *col_image;





	CvHaarClassifierCascade* cascade;
	int facenum;
	int facedetect_flag;
	CvRect facelist[5];
	double ServoLr, ServoUd;
	int DcLeft, DcRight;



public:
	void SetAct(int ActionNum);

	void ActiveCam(void);
	void DetectFace(IplImage * image, CvHaarClassifierCascade * cascade, int do_pyramids);
};


